package com.huabo.system.mysql.mapper;

import com.hbfk.util.PageInfo;
import com.huabo.system.mysql.entity.TblOuterruleMySql;
import com.huabo.system.mysql.mapper.TblOuterruleMapperSqlMySqlConfig;
import org.apache.ibatis.annotations.SelectProvider;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface TblOuterruleMySqlMapper extends Mapper<TblOuterruleMySql> {


    @SelectProvider(type = TblOuterruleMapperSqlMySqlConfig.class, method = "findListByPageInfoFlow")
    List<TblOuterruleMySql> findListByPageInfoFlow(PageInfo<TblOuterruleMySql> outPageInfo, String flowid);

    @SelectProvider(type = TblOuterruleMapperSqlMySqlConfig.class, method = "findCountByPageInfoFlow")
    Integer findCountByPageInfoFlow(String flowid);

    @SelectProvider(type = TblOuterruleMapperSqlMySqlConfig.class, method = "findInnerruleByFolwid")
    List<TblOuterruleMySql> findInnerruleByFolwid(PageInfo<TblOuterruleMySql> pageInfo, String orgid, String name, String status, String flowid);

    @SelectProvider(type = TblOuterruleMapperSqlMySqlConfig.class, method = "findCountInnerruleByFolwid")
    Integer findCountInnerruleByFolwid(String orgid, String name, String status, String flowid);
}
